package cn.whdreamblog.dao;

import java.util.List;
import java.util.Map;

import cn.whdreamblog.entites.BlogArticle;
import cn.whdreamblog.entites.PageBean;

public interface BlogArticleDAO {
	public boolean insertBlogArticle(BlogArticle ba);
	public boolean deleteBlogArticle(BlogArticle ba);
	public boolean updateBlogArticle(BlogArticle ba);
	public List<BlogArticle> searchBlogArticleByTitle(String title);
	public List<BlogArticle> searchBlogArticleByKind(String kind);
	public List<BlogArticle> searchBlogArticleByPubDate(String pubDate);
	public BlogArticle searchBlogArticleById(int id);
	public List<BlogArticle> getAllBlogArticles();
	public List<BlogArticle> getAllBlogSomeArticles( int start, int limit);
	public List<BlogArticle> getSomeBlogArticlesAttribute( int start, int limit,String attr);
	public PageBean getAllBlogSomeArticlesByPage(  int limit ,int page );
	public PageBean searchBlogArticleByAttrAndPage(String attr , int limit ,int page);
	
}
